package cn.tedu.bece.front.service.impl;

import cn.tedu.bece.front.mapper.KnowledgeMapper;
import cn.tedu.bece.front.pojo.dto.KnowledgeCategoryQuery;
import cn.tedu.bece.front.pojo.vo.KnowledgeCategoryVO;
import cn.tedu.bece.front.service.KnowledgeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Slf4j
@Service
public class KnowledgeServiceImpl implements KnowledgeService {
    @Autowired
    KnowledgeMapper knowledgeMapper;

    @Override
    public List<KnowledgeCategoryVO> selectKnowledgeCategory(KnowledgeCategoryQuery knowledgeCategoryQuery) {
        log.debug("查询知识分类业务：参数：{}",knowledgeCategoryQuery);
        List<KnowledgeCategoryVO> list = knowledgeMapper.selectKnowledgeCategory(knowledgeCategoryQuery);
        return list;
    }
}
